package com.fasteat.mall.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author hy
 * @since 2021-02-20
 */
@TableName("t_mall_orderform_aftersales")
@ApiModel(value="TMallOrderformAftersales对象", description="")
public class OrderformAftersales implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "售后id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "订单id")
    private String orderformId;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "售后理由")
    private String reason;

    @ApiModelProperty(value = "售后图片")
    private String img;

    @ApiModelProperty(value = "售后状态，1:申请退款 2:已同意退款、3:已退款、4:拒绝退款")
    private Integer aftersalesStatus;

    @ApiModelProperty(value = "处理结果")
    private String processResult;

    @ApiModelProperty(value = "处理原因")
    private String processReason;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除,是1、否0")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderformId() {
        return orderformId;
    }

    public void setOrderformId(String orderformId) {
        this.orderformId = orderformId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getAftersalesStatus() {
        return aftersalesStatus;
    }

    public void setAftersalesStatus(Integer aftersalesStatus) {
        this.aftersalesStatus = aftersalesStatus;
    }

    public String getProcessResult() {
        return processResult;
    }

    public void setProcessResult(String processResult) {
        this.processResult = processResult;
    }

    public String getProcessReason() {
        return processReason;
    }

    public void setProcessReason(String processReason) {
        this.processReason = processReason;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "OrderformAftersales{" +
        "id=" + id +
        ", orderformId=" + orderformId +
        ", userId=" + userId +
        ", reason=" + reason +
        ", img=" + img +
        ", aftersalesStatus=" + aftersalesStatus +
        ", processResult=" + processResult +
        ", processReason=" + processReason +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        ", isDeleted=" + isDeleted +
        ", version=" + version +
        "}";
    }
}
